package com.gopay.common.domain.logging.console;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;
import com.gopay.common.util.DateUtils;

/**
 * 控制台操作用户的日志
 * 
 * ConsoleToPersonLog.java
 * @author qianld
 * @2015-05-21 上午11:09:30 www.gopay.com.cn Inc.All rights reserved.
 */

@Entity
@Table(name = "CONSOLE_TO_PERSON_LOG")
public class ConsoleToPersonLog extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = -2532973121653792672L;

    /**
     * id
     */
    @Id
    @SequenceGenerator(name="CONSOLE_TO_PERSON_SEQ", sequenceName="CONSOLE_TO_PERSON_SEQ" )
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CONSOLE_TO_PERSON_SEQ")
    @Column(name="LOG_ID")
    private int logid;

    /**
     * 方法名
     */
    @Column(name="METHODNAME")
    private String methodName;

    /**
     * 操作员ip
     */
    @Column(name="OPER_IP")
    private String operIp;

    /**
     * 操作类型
     */
    @Column(name="OPER_TYPE")
    private String operType;

    /**
     * 操作员id
     */
    @Column(name="ADMIN_ID")
    private String adminId;

    /**
     * 被操作的用户id
     */
    @Column(name="CUST_ID")
    private String custId;

    /**
     * 操作之前信息
     */
    @Column(name="OPER_BEFORE")
    private String operBefore;

    
    /**
     * 操作之后信息
     */
    @Column(name="OPER_AFTER")
    private String operAfter;
    
    public int getLogid() {
		return logid;
	}

	public void setLogid(int logid) {
		this.logid = logid;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getOperIp() {
		return operIp;
	}

	public void setOperIp(String operIp) {
		this.operIp = operIp;
	}

	public String getOperType() {
		return operType;
	}

	public void setOperType(String operType) {
		this.operType = operType;
	}

	public String getAdminId() {
		return adminId;
	}

	public void setAdminId(String adminId) {
		this.adminId = adminId;
	}

	public String getCustId() {
		return custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}



	public String getOperBefore() {
		return operBefore;
	}

	public void setOperBefore(String operBefore) {
		this.operBefore = operBefore;
	}

	public String getOperAfter() {
		return operAfter;
	}

	public void setOperAfter(String operAfter) {
		this.operAfter = operAfter;
	}

	public String getOperTime() {
		return operTime;
	}

	public void setOperTime(String operTime) {
		this.operTime = operTime;
	}

	/**
     * 操作时间
     */
    @Column(name="OPER_TIME")
    private String operTime;
 
}
